<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>harmean</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center></center>
    <div align="right">Last update : 20/12/2004</div>
    <p>
      <b>harmean</b> -  harmonic mean</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>hm=harmean(x)  </tt>
      </dd>
      <dd>
        <tt>hm=harmean(x,'r')(or,  equivalently,   hm=harmean(x,1))  </tt>
      </dd>
      <dd>
        <tt>hm=harmean(x,'c')(or,   equivalently,  hm=harmean(x,2))  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>x</b>
        </tt>: real or complex vector or matrix</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    This function  computes the harmonic  mean of a  vector or
    matrix <tt>
        <b> x</b>
      </tt>.  For a vector or matrix  <tt>
        <b> x</b>
      </tt>, 
    <tt>
        <b> hm=harmean(x)  </b>
      </tt>  returns  in  scalar  <tt>
        <b>  hm</b>
      </tt>  the
    harmonic mean of all the entries of <tt>
        <b> x</b>
      </tt>.</p>
    <p>
      <tt>
        <b>   hm=harmean(x,'r')   </b>
      </tt>   (or,   equivalently,   
    <tt>
        <b> hm=harmean(x,1)  </b>
      </tt> ) returns  in each  entry of  the row
    vector <tt>
        <b> hm</b>
      </tt> the  harmonic mean of each column of <tt>
        <b> x</b>
      </tt>.</p>
    <p>
      <tt>
        <b>   hm=harmean(x,'c')   </b>
      </tt>   (or,   equivalently,   
    <tt>
        <b> hm=harmean(x,2) </b>
      </tt> ) returns  in each entry of the column
    vector <tt>
        <b> hm</b>
      </tt> the harmonic mean of each  row of <tt>
        <b> x </b>
      </tt>.</p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p> Carlos Klimann</p>
    <h3>
      <font color="blue">Bibliography</font>
    </h3>
    <p>
    Wonacott, T.H. &amp; Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley &amp; Sons, 1990.</p>
  </body>
</html>
